package model

import (
	"github.com/beego/beego/v2/client/orm"
	_ "github.com/go-sql-driver/mysql"
)

type Goods struct {
	Id       int
	Name     string
	Logo     string
	Desc     string
	Sort     string
	Ishot    string
	Catename string
}

func init() {
	orm.RegisterDriver("mysql", orm.DRMySQL)

	orm.RegisterDataBase("default", "mysql", "root:root@tcp(127.0.0.1:3306)/zhoukao?charset=utf8")

	orm.RegisterModel(new(Goods))

	orm.RunSyncdb("default", false, true)

	orm.Debug = true
}
